from django.shortcuts import render

# Create your views here.
from django.views.generic import ListView,TemplateView,DetailView
from .models import UserProfile as Users
from django.db.models import Count

class UserlistView(ListView):
    template_name = 'devops/userlist.html'
    model = Users
    context_object_name = 'user_list'


class IndexView(ListView):

    model = Users
    template_name = 'devops/index.html'
    context_object_name = 'user_sum'
    queryset = Users.objects.all().count()
    print(context_object_name)

class GrouplistView(TemplateView):
    template_name = 'devops/grouplist.html'
